package gameFrame;

import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JFrame;

public class Test extends JFrame
{
	public static void main(String [] args)
	{
		Test t = new Test();
	}
	public Test()
	{
		this.setVisible(true);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setBounds(20, 20, 1440, 900);
		this.add(GameFrame.getGameFrame());
		Graphics g = this.getContentPane().getGraphics();
		g.setColor(new Color(0,25,54,255));
		g.fillRect(800, 500, 1000, 100);
	}
	
	public void paint(Graphics g)
	{
		super.paint(g);
		g.setColor(new Color(0,25,54,255));
		g.fillRect(800, 500, 20, 100);
		test();
	}
	
	public void test()
	{
		
		Canvas n = new Canvas();
		n.setVisible(false);
		this.add(n);
		n.createBufferStrategy(2);
		Graphics g = n .getBufferStrategy().getDrawGraphics();
	}
}
